//
//  ExhibitionObject.h
//  HAODE
//
//  Created by LiYinDi on 16/4/8.
//  Copyright © 2016年 reabam.com. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <JavaScriptCore/JavaScriptCore.h>
@protocol TestDelegate;
//首先创建一个实现了JSExport协议的协议
@protocol TestJSObjectProtocol <JSExport>

//此处我们测试几种参数的情况

-(void)go:(NSString *)string1 List:(NSString *)message2;
-(void)go:(NSString *)itemID Detail:(NSString *)Url;
-(void)go:(NSString *)string1 PageItem:(NSString *)message2;
-(void)go:(NSString *)title  Common:(NSString *)url  H5:(NSString *)shareType  Page:(NSString *)contentId;

-(NSString *)getGroupId;
-(NSString *)getCompanyId;
-(NSString *)getServerUrl;
-(NSString *)getTokenId;
-(NSString *)getVersion;
//-(void)TestOneParameter:(NSString *)message;
@end

@interface ExhibitionObject : NSObject<TestJSObjectProtocol>
@property(nonatomic,weak) id<TestDelegate> delegate;
@end


@protocol TestDelegate <NSObject>
@optional

-(void)itemClick:(NSString *)url;
-(void)productDetail:(NSString *)itemID Url:(NSString *)Url;
-(void)pageItem:(NSString *)url exhibitionID:(NSString *)exhibitionID;
-(void)CommonH5Page:(NSString *)title  url:(NSString *)url  shareType:(NSString *)shareType  contentId:(NSString *)contentId;
//
//-(void)productDetail:(NSString *)itemID Url:(NSString *)Url;
//-(void)productDetail:(NSString *)itemID Url:(NSString *)Url;
 @end